﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Windows;
using DemoLocalization.Assets.Localization;
using DemoLocalization.Assets.Resources;

namespace DemoLocalization
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            const UICultures activeCulture = UICultures.Slovak;

            LocalizationManager.Initialize(this.GetType().Assembly, Strings.ResourceManager);
            LocalizationManager.CurrentUiCulture = CultureInfo.GetCultureInfo((int)activeCulture);

        }
    }
}
